<h2>子页面</h2>

<ul>
    {% assign entries = site.pages | sort: "path" %}
    {% assign sorted_category_pages = entries | sort: 'title', 'last' %}
    {% assign sorted_category_pages = sorted_category_pages | sort: 'priority', 'last' %}

    {% for entry in sorted_category_pages %}
        {% assign slug = entry.url | split: "/" | last %}
        {% assign current = entry.url | remove: slug %}

        {% if current == include.context and entry.title %}
        <li>
            <a href="{{ entry.url }}">{{ entry.title }}</a>
        </li>
        {% endif %}
    {% endfor %}
</ul>
